package threaddemo14;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-07
 * Time: 16:23
 */
/*
测试类(Demo)：里面有main方法，main方法中的代码步骤如下
创建生产者线程和消费者线程对象
分别开启两个线程
* */
public class TestDemo {
    public static void main(String[] args) {
        Desk desk=new Desk();
        
        Cooker cooker=new Cooker(desk);
        cooker.start();
        
        Foodie foodie=new Foodie(desk);
        foodie.start();
    }
}
